﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanySearch.aspx.cs"
    Inherits="BEGDC.CC.Web.CIS2.Overseas.Search.CompanySearch" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/main2.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="mainbox">
        <div class="sitemapbox">
            <div class="sitemap">
                &nbsp;»&nbsp;Search(Overseas)&nbsp;»&nbsp;Company Search
            </div>
        </div>
        <div class="formbox_dashed">
        </div>
        <div>

<table width="100%"><tr><td height="30">
                <font style="font-size: 14px;">&nbsp;&raquo;&nbsp;基本信息</font>
</td></tr></table> 
            <table width="100%" style="font-size: 12px;" class="padding_lft5">
                <tr height="30">
                    <td width="80">
                        &nbsp;&nbsp;公司名称:
                    </td>
                    <td>
                        <asp:TextBox ID="txtCompanyName" runat="server" CssClass="txtbox" onmouseover="this.className='txtboxover';"
                            onmouseout="this.className='txtbox';"></asp:TextBox>
                    </td>
                </tr>
                <tr height="30">
                    <td>
                        &nbsp;&nbsp;Country:
                    </td>
                    <td>
                        <asp:DropDownList ID="selectCountry" runat="server" Width="130" />
                    </td>
                </tr>
                <tr height="30">
                    <td>
                        &nbsp;&nbsp;编辑人:
                    </td>
                    <td>
                        <asp:TextBox ID="txtEdit" runat="Server" CssClass="txtbox" onmouseover="this.className='txtboxover';"
                            onmouseout="this.className='txtbox';"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <asp:Button ID="btnOK" runat="server" Text="查询" OnClick="btnOK_Click" CssClass="btn" />
            <asp:Button ID="btnClear" runat="server" Text="清除" OnClick="btnClear_Click" CssClass="btn" />
            <asp:GridView ID="GVCompany" runat="server" AutoGenerateColumns="False" DataKeyNames="CompanyID"
                DataSourceID="edsCompany" Visible="false" AllowPaging="true" OnRowCommand="GVCompany_RowCommand"
                CssClass="tablestyle" Width="950" EmptyDataText="There is no data to display!">
                <FooterStyle />
                <RowStyle CssClass="tbody" />
                <PagerStyle CssClass="pagecounting2" HorizontalAlign="right" />
                <SelectedRowStyle />
                <HeaderStyle CssClass="thead" ForeColor="#ffffff" />
                <Columns>
                    <asp:BoundField DataField="CompanyID" HeaderText="CompanyID" ReadOnly="True" SortExpression="CompanyID" />
                    <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                    <asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" />
                    <asp:BoundField DataField="Tel" HeaderText="Tel" SortExpression="Tel" />
                    <asp:TemplateField HeaderText="LastModifyBy">
                        <ItemTemplate>
                            <asp:Label ID="Employee" runat="server" Text='<%#Eval("LastModifyBy.NameEN") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:ButtonField CommandName="open" ButtonType="Image" ImageUrl="~/images/book_open.gif" />
                </Columns>
            </asp:GridView>
            <asp:DetailsView ID="DVCompany" runat="server" AutoGenerateRows="False" DataKeyNames="CompanyID"
                DataSourceID="edsCompany" Visible="false" CssClass="tablestyle2">
                <Fields>
                    <asp:BoundField DataField="CompanyID" HeaderText="CompanyID" ReadOnly="True" SortExpression="CompanyID" />
                    <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                    <asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" />
                    <asp:BoundField DataField="Tel" HeaderText="Tel" SortExpression="Tel" />
                    <asp:BoundField DataField="Fax" HeaderText="Fax" SortExpression="Fax" />
                    <asp:BoundField DataField="Website" HeaderText="Website" SortExpression="Website" />
                    <asp:BoundField DataField="Zip" HeaderText="Zip" SortExpression="Zip" />
                    <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                    <asp:BoundField DataField="CreateTime" HeaderText="CreateTime" SortExpression="CreateTime" />
                    <asp:TemplateField HeaderText="CreateBy">
                        <ItemTemplate>
                            <%#Eval("CreateBy.NameEN")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="LastModifyTime" HeaderText="LastModifyTime" SortExpression="LastModifyTime" />
                    <asp:TemplateField HeaderText="LastModifyBy">
                        <ItemTemplate>
                            <%#Eval("LastModifyBy.NameEN")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Fields>
            </asp:DetailsView>
        </div>
        <asp:EntityDataSource ID="edsCompany" runat="server" ConnectionString="name=CCEntities"
            DefaultContainerName="CCEntities" EnableDelete="True" EnableInsert="True" EnableUpdate="True"
            EntitySetName="Companies" Include="LastModifyBy,CreateBy">
        </asp:EntityDataSource>
        <asp:EntityDataSource ID="edsCountry" runat="server" ConnectionString="name=CCEntities"
            DefaultContainerName="CCEntities" EnableDelete="True" EnableInsert="True" EnableUpdate="True"
            EntitySetName="Countries" Where="!it.Disabled">
        </asp:EntityDataSource>
    </div>
    </form>
</body>
</html>
